import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import getters from './getters.js'
import actions from './actions.js'
import modulesOne from './modules/modulesOne.js'

Vue.use(Vuex)

const state = {
  userPlayList: [],
  nowMusic: '',
  nowMusicIndex: 0,
  nowMusicMenu: {},
  musiclistId: [],
  musicCount: 0,
  isPlaying: false,
  volumeValue: 100,
  // 歌词显示
  showTilt: false,
  lyric: ''
}

export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions,
  modules: {
    modulesOne
  }
})
